package com.zhangmeng.tools.utils;

import javafx.scene.image.Image;
import net.imyeyu.timifx.TimiFX;
import net.imyeyu.timifx.util.TrayFX;
import net.imyeyu.timiinject.annotation.IOCReturn;
import net.imyeyu.timijava.config.Config;
import net.imyeyu.timijava.config.ConfigManager;

/**
 * 静态资源
 *
 * <p>夜雨 创建于 2022-08-26 15:23
 */
@net.imyeyu.timiinject.annotation.Resources
public class Resources implements TimiFX {

	/** 配置路径 */
	public static final String CONFIG_PATH = "mystyle-java-fx-tools.ini";

	public static final Image ICON_X64 = new Image(TFX_RESOURCE + "icon.png", 64, 64, true, false);

	/** @return 配置 */
	@IOCReturn
	public Config config() {
		return ConfigManager.getConfig(CONFIG_PATH);
	}

	/** @return 托盘 */
	@IOCReturn
	public TrayFX trayFX() {
		return TrayFX.getInstance();
	}
}